﻿@model BasicCMS.Content.ContentType
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Cotnent</title>
</head>
<body>
    <div>
        @using (Html.BeginForm())
        {
            <table>
                @foreach (var part in Model.Parts)
                {
                    <tr>
                        <td></td>
                        <td>
                            @Html.ContentPart(part)
                        </td>
                    </tr>
                }
                <tr>
                    <td colspan="2">
                        <input name="ok" value="aa" type="submit" />
                    </td>
                </tr>
            </table>
        }
    </div>
</body>
</html>
<script type="text/javascript">
    @if (ViewData["Success"] != null)
    {
        @:alert("操作成功!");
        @:location.href='@Url.Action("List")';
    }
</script>
